lib = libmymah.a

$(lib):mymath.o
	ar -rc $@ $^

mymath.o:mymath.cpp
	g++ -c $^

.PHONY:clear
clear:
	rm -rf *.o *.a lib 

.PHONY:output
output:
	mkdir -p lib/include 
	mkdir -p lib/mymathlib
	cp *.h lib/include
	cp *.a lib/mymathlib
